/*
 *   Copyright 2021 zzh
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 *
 */

package com.aduib.boot.logging.operation.enums;

/**
 * @description: OpLogType
 * @author: zzh
 * @date: 2021/9/17 10:20
 */
public enum OpLogType {
  /** 创建 */
  CREATED(0),
  /** 更新 */
  UPDATE(1),

  /** 删除 */
  DELETE(2),
  /** 读取 */
  READ(3),
  /** 导入操作 */
  IMPORT(4),

  /** 导出操作 */
  EXPORT(5),
  /** 其他 */
  OTHER(6);

  private Integer code;

  OpLogType(Integer code) {
    this.code = code;
  }

  public Integer getCode() {
    return code;
  }
}
